export const WAIT_FOR_PAY = {
    performanceStatus: 0,
    chineseName: "待支付",
    showType: "default"
}

export const CANCELED = {
    performanceStatus: 1,
    chineseName: "已取消",
    showType: "error"
}

export const PAYMENT_SUCCESS = {
    performanceStatus: 2,
    chineseName: "已支付",
    showType: "default"
}


export const OrderStatusList = [
    WAIT_FOR_PAY,
    CANCELED,
    PAYMENT_SUCCESS,
];

// 通过类型转换成一个对象
export function valueOf(orderStatus) {
    return OrderStatusList[orderStatus];
}